'use strict';

/**
 * @param {Egg.Application} app - egg application
 */
module.exports = app => {
  const { router, controller,middleware } = app;
  router.get('/', controller.home.index);
  // router.get('/system', controller.system.common.index);
  router.all('/rest/:table',  controller.system.common.dispatch);
  router.all('/rest/:table/:id',controller.system.common.dispatch);
};
